package pro.shushi.pamirs.hr.api.model.eam;

import pro.shushi.pamirs.boot.base.ux.annotation.field.UxWidget;
import pro.shushi.pamirs.boot.base.ux.annotation.view.UxTableSearch;
import pro.shushi.pamirs.meta.annotation.Field;
import pro.shushi.pamirs.meta.annotation.Model;
import pro.shushi.pamirs.meta.base.IdModel;
import pro.shushi.pamirs.meta.base.common.CodeModel;

import java.math.BigDecimal;

// 模型中UX开头的注解(UxForm/UxTable/UxDetail等)可以不用写，都可在设计器中进行可视化配置; 代码里面写这些注解是为了默认页面的交互
@Model.model(BsMtoolMdStencil.MODEL_MODEL)
@Model(displayName = "工装钢网属性表")
@Model.Advanced(table="bs_mtool_md_stencil",unique = {"orgCode,mmdCode"})
public class BsMtoolMdStencil extends IdModel {

    public static final String MODEL_MODEL = "hr.simple.bsMtoolMdStencil";

    @UxTableSearch.FieldWidget(@UxWidget())
    @Field(displayName = "组织编码", required = true)
    private String orgCode;

    @UxTableSearch.FieldWidget(@UxWidget())
    @Field(displayName = "工装型号编码", required = true)
    public String mmdCode;

    @Field.Money(M=20,D=6)
    @Field(displayName = "测试点最小张力值",defaultValue = "0")
    public BigDecimal stdMinTension;

    @Field.Money(M=20,D=6)
    @Field(displayName = "测试点最大张力值",defaultValue = "0")
    public BigDecimal stdMaxTension;

    @Field.Money(M=20,D=6)
    @Field(displayName = "四角间张力偏差上限值",defaultValue = "0")
    public BigDecimal stdAngleMax;

    @Field.Money(M=20,D=6)
    @Field(displayName = "四角与中心点张力偏差上限值",defaultValue = "0")
    public BigDecimal stdAllDiff;

    @Field.Money(M=20,D=6)
    @Field(displayName = "上线时效上限(小时)",defaultValue = "0")
    public BigDecimal mdcOnTime;

    @Field.Text
    @Field(displayName = "备注")
    private String remark;


}
